package com.vq3.digitalizationsoftwareintegrates.Entity.User;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vq3.digitalizationsoftwareintegrates.Entity.Enum.Group_Type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**用户的实体类
 * @author y.h
 * @version 1.0.0
 *
 * */
@Data
/**数据库表的名字*/
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
@Component
/**压制警告，主要压拼写错误，如果感觉这个类有问题把下面的注解注释掉* */
@SuppressWarnings("all")
public class UserEntity {
    @TableId(value = "uid",type = IdType.AUTO)
    private Integer uid;
    @TableField("uname")
    private String uname;
    @TableField("upassword")
    private String upassword;
    @TableField("fullname")
    private String fullname;
    @TableField("grouptype")
    private Group_Type group_type;
    @TableField("deletestatus")
    private Integer deletestatus;
    @TableField("group_id")
    private Integer groupId;
    @TableField("SysAuthentication")
    private String SysAuthentication;

    @TableField(exist = false)
    private IPage<URole_TBEntity> uRoleS;

    @TableField(exist = false)
    private Long uRoleCount;




}
